@extends('Layout/base')


@section('title', '购物车页面')

@section('css')
	<style>
		body{

			background:#ccc;
		}
	</style>
@endsection


@section('main')
	{{$userdata}}
	<h2>购物车页面的主体</h2>

	<form action="{{url('/')}}" method="get">
		
		<div class="col-md-4">
          <input class="form-control" type="text" name="keyword" />
          <input type="text" name="sex" />
    </div>

    <button class="btn btn-danger" type="submit">搜索</button>
	</form>

	<table class="table table-hover">
		
		<tr>
			<th>序号</th>
			<th>姓名</th>
			<th>身高</th>

		
			<th>haha<th>
			<th>年龄</th>
		</tr>

		@foreach($user as $v)
			<tr>
				<td>{{$v->id}}</td>
				<td>{{$v->name}}</td>
				<td>{{$v->sex}}</td>
			</tr>
		@endforeach
	</table>
	{{$user->appends(['keyword' => $keyword, 'sex' => $sex])->links()}}
	
@endsection


@section('foot-js')
	<script type="text/javascript">
		// alert('这是购物车页面的js');
	</script>
@enfsection
